package com.gw.yunke.service;

import com.gw.yunke.domain.QAndA;
import com.gw.yunke.domain.dto.QAndAReq;
import com.gw.yunke.domain.dto.UserAnswerReq;
import com.gw.yunke.domain.dto.UserQAndAInfoResp;

import java.util.List;

public interface IQAndAService {

  List<QAndA> getQuestionSingleSelectByCourseId(Long courseId);

  int createQuestion(QAndAReq qAndAReq);

  int createAnswer(UserAnswerReq userAnswerReq);

  List<UserQAndAInfoResp> getUserAnswerInfoByCourseId(Long courseId,Long userId);
}
